Skip to content

never ending check on nasty bash script #716

Open
@judovana

Description

@judovana

Describe the bug
The jscpd analyse of the https://github.com/judovana/temurin-build/blob/907db529f3b22973aec895e672db8eec0842eb87/tooling/compare-builds.sh is never finished (https://github.com/adoptium/temurin-build/actions/runs/11775432014/job/32795868920?pr=4008)

   sudo  npm install -g jscpd
   npx jscpd -v compare-builds.sh 

Is deadlocking the same.

With a bit of playing I found the guilty part of
https://github.com/judovana/temurin-build/blob/907db529f3b22973aec895e672db8eec0842eb87/tooling/compare-builds.sh#L394-L465 however checking that part alone do not cause infinite execution.

To Reproduce
Steps to reproduce the behaviour:

  1. wget https://raw.githubusercontent.com/judovana/temurin-build/907db529f3b22973aec895e672db8eec0842eb87/tooling/compare-builds.sh
  2. npx jscpd compare-builds.sh

Expected behavior
The analyse will finish in real time

Desktop (please complete the following information):

  • OS: fedora 39 and github actions
  • NodeJS Version: github actions and 10.8.2
  • jscpd version: github actions and 4.0.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions